home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d27
/
dspsrcdr.arc
/
DSPSRCDR.DOC
< prev
next >
Wrap
Text File
|
1991-12-04
|
5KB
|
128 lines
DISPLAY SOURCE DIRECTORY COMMAND -- DSPSRCDIR
A IBM SYSTEM/38 COMMAND
Written By
Joe Bolen
(C) - Copyright 1988 By Shaw-Barton, Inc.
545 Walnut Street
Coshocton, OH 43812
Ph. (614) 622-4422
FAX (614) 622-5868
Limited permission is granted for use of Display Source
Directory Command for non-commercial purposes. Selling of
this document and programs is strictly forbidden.
I. General Overview.
The Display Source Directory Command provides a simple
selection and reformatting of member list information provided
by the IBM supplied Display File Description Command (DSPFD
TYPE(*MBRLIST). The Command allows for generic or wildcard
search criteria of source code type and member name prefix to
assist in finding related source code. The output report
contains source code information, such as, member name,
creation and change dates, brief description, and SEU code
type.
II. Files needed for Command.
Four source code files are needed to create DSPSRCDIR
command:
System/38 Name P.C. Archived Name
-------------- ------------------
DSPSRCDIR (CMD) DSPSRCDR.CMD
DSPSRCDIR1 (CLP) DSPSRCDR.CLP
DSPSRCDIR2 (RPG) DSPSRCDR.RPG
DSPSRCDR (PRTF) DSPSRCDR.PRT
In addition, this document, archived under the name of
DSPSRCDR.DOC, also should be tranferred to the System/38 for
later reference.
III. How to Use Display Source Code Directory Command.
After compiling the source code, type DSPSRCDIR and prompt on
the command. The below figure (Fig. 1) is the prompted
DSPSRCDIR screen.
Display Source Directory (DSPSRCDIR) Prompt
Enter the following:
Source Type: TYPE P *RPG
Member Name- Generic*: MBR P *ALL
Source file name- Generic*: FILE P QRPGSRC
Library name: *USRLIBL
Output option (* or *Print): OUTPUT P *
Fig. 1
Source Type may be any SEU type or you may select *ALL.
Member Name defaults to *ALL, but you may choose to enter the
exact name or the beginning characters of a member name
follow by the asterisk. For example, to find all your payroll
source code which begins with 'PR', enter 'PR*'.
The Source file name should be related to the source type
search criteria. For RPG source code the programmer's memu
defaults to QRPGSRC, CLP code to QCLSRC, etcetera. (See IBM
System/38 Source Entry Utility Reference Manual and User's
Guide: EDTSRC Command Parameter Description.) Note, however,
that you can choose any file name or generic file name for your
search.
The Library name should be designated to limit the range and
time of the search.
Valid output parameters are: '*' to display the DSPSRCDIR
report; and, '*Print' or '*List' to redirect the report to the
printer.
IV. How to Submit Job for wider searches.
If you wish to perform a global search for source code member
names, you should submit a job with the Display Source Code
Directory command in order not to lock up your workstation.
For example, let us say you wished to find all the payroll
source code files. Let us assume that all payroll source
code files are named with the prefix of 'PR' and that all the
code is in 'QSRC' library. The following figure (Fig. 2)
describes the command you would use:
SBMJOB JOB(MYJOB) RQSDTA('DSPSRCDIR TYPE(*ALL) MBR(PR*) +
FILE (*ALL.QSRC) OUTPUT(*PRINT)')
Fig. 2
IV. Special Thanks.
My special thanks goes to Bob Cozzi, whose article "Display
Database Directory" in Vol. 5 No. 4 issue of Q38 Technical
Journal motivated me to write DSPSRCDIR command.
V. Disclaimer.
Shaw-Barton, Inc. or I, Joe Bolen, take no responsiblity for
the failure of the DSPSRCDIR command or the loss of data
media information as the result of its use.